﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ISubGroupService" in both code and config file together.
    [ServiceContract]
    public interface ISubGroupService
    {
        [OperationContract]
        List<SubGroupDTO> GetList(int page, out long recordCount, string sortProperty = null, string sortType = "ASC");

        [OperationContract]
        bool Save(SubGroupDTO subGroup);

        [OperationContract]
        bool Delete(SubGroupDTO subGroup);

        [OperationContract]
        List<SubGroupDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                            out long recordCount);

        [OperationContract]
        List<SubGroupDTO> GetAllSubGroup();

        [OperationContract]
        List<SubGroupDTO> GetSubGroupListByName(string SubgroupName);

        [OperationContract]
        bool SendEmail(SubGroupDTO subGroupDto, String DestinationFolder);
    }
}